package com.example.controller;


import com.example.entity.Vip;
import com.example.service.VipService;
import com.example.vo.Result;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;

import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;


/**
 * <p>
 * 会员表 前端控制器
 * </p>
 *
 * @author chengtaoxie
 * @since 2023-10-23
 */
@RestController
@Api(tags = "vip接口")
@RequestMapping("/vip")
public class VipController {
    @Resource
    private VipService vipService;

    @ApiOperation("增加vip信息")
    @PostMapping("/addVip")
    public Result addVip(@RequestBody Vip vip){
        return vipService.addVip(vip);
    }


}

